<?php

function smarty_modifier_mssqldatetime($string, $format='%Y-%m-%d %H:%M:%S')
{
    $t = strtotime($string);
    if ($t === False) {
        $t = time();
    }
    return strftime($format, $t);
}




